class FractionElement extends eui.Component implements  eui.UIComponent ,ElementWHI{
	public constructor() {
		super();
		this.skinName ="FractionElementSkin";
	}
	private number:eui.Label;
	private menber:eui.Label;
	
	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
		if(partName =="number"){
			this.number.text = "45"
			this.height+=this.number.textHeight;
		}
		if(partName =="menber"){
			this.menber.text = "405"
			this.height+=this.menber.textHeight;
		}
	}

	protected childrenCreated():void
	{
		super.childrenCreated();
	}
	measureWidth():number{
		if(this.number.textWidth>this.menber.textWidth){
			return this.number.textWidth;
		}else{
			return this.menber.textWidth;
		}
	}
    measureHidth():number{
		console.log("@FractionElement heigth：",this.height);
		return this.height;
	}
}